/*
 * @Author: thinkido 4077725@qq.com
 * @Date: 2022-07-07 18:59:49
 * @LastEditors: thinkido 4077725@qq.com
 * @LastEditTime: 2022-07-11 19:00:42
 * @FilePath: \vue3vite-framework\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'

import { NavBar, Tabbar, TabbarItem } from 'vant';
import Vant from 'vant'
import { Quasar } from 'quasar'
import 'vant/lib/index.css' // 全局引入样式
import '@quasar/extras/material-icons/material-icons.css'
import 'quasar/dist/quasar.css'
// import 'quasar/src/css/index.sass'
// import iconSet from 'quasar/icon-set/ionicons-v4.js'

import './styles/index.scss';
import './styles/c-page.scss';

import icons from '@/icons' // 全局注册所有svg的icon
import components from '@/components' // 全局注册所有组件
import axios from './plugins/axios';

import eventBus from 'vue3-eventbus'
import 'amfe-flexible'

import { setupProdMockServer } from '@/mock/mockProdServer.js';
let env = import.meta.env;
console.log('main.js import', env)
if (env.MODE === 'development') {
    setupProdMockServer()
}

import { Toast,Empty  } from 'vant';

const app = createApp(App)
app.use(router).use(store)
app.use(Vant) //,{iconSet: iconSet}
    // app.use(NavBar).use(Tabbar).use(TabbarItem)
    // .use(axios)
    // .use(icons)
    .use(Toast).use(Empty)
    .use(Quasar)
    .use(axios)
    .use(components)
    .use(eventBus)
    .mount('#app');